package io.renren.modules.examination.service.impl;

import io.renren.modules.examination.dao.ExaminationDao;
import io.renren.modules.examination.service.ExaminationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ExaminationServiceImpl implements ExaminationService {
    @Autowired
    ExaminationDao examinationDao;

    @Override
    public List getExaminationPaperList() {
        List examinationPaperList = examinationDao.getExaminationPaperList();
        return examinationPaperList;
    }

    @Override
    public List getExaminationQuestionsList(int paperId) {
        List examinationQuestionsList = examinationDao.getExaminationQuestionsList(paperId);
        return examinationQuestionsList;
    }

    @Override
    public List getExaminationQuestionsListByQuestionId(int questionId) {
        List examinationQuestionsList = examinationDao.getExaminationQuestionsListByQuestionId(questionId);
        return examinationQuestionsList;
    }

    @Override
    public List getExaminationResultTypeList(List list) {
        List resultTypeList = examinationDao.getExaminationResultTypeList(list);
        return resultTypeList;
    }

}


